package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the HOSP_WORK_IN_NOTICE database table.
 * 
 */
@Entity
@Table(name="HOSP_WORK_IN_NOTICE")
@NamedQuery(name="HospWorkInNotice.findAll", query="SELECT h FROM HospWorkInNotice h")
public class HospWorkInNotice implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private long livenoticid;

	private String liveoffice;

	private String livestatus;

	private String mjdoctorname;

	@Temporal(TemporalType.DATE)
	private Date noticdate;

	private String notice;

	private String patientname;

	//bi-directional many-to-one association to HospPatientRegistration
	@ManyToOne
	@JoinColumn(name="PATIENT_REGISTRATION_ID")
	private HospPatientRegistration hospPatientRegistration;

	public HospWorkInNotice() {
	}

	public long getLivenoticid() {
		return this.livenoticid;
	}

	public void setLivenoticid(long livenoticid) {
		this.livenoticid = livenoticid;
	}

	public String getLiveoffice() {
		return this.liveoffice;
	}

	public void setLiveoffice(String liveoffice) {
		this.liveoffice = liveoffice;
	}

	public String getLivestatus() {
		return this.livestatus;
	}

	public void setLivestatus(String livestatus) {
		this.livestatus = livestatus;
	}

	public String getMjdoctorname() {
		return this.mjdoctorname;
	}

	public void setMjdoctorname(String mjdoctorname) {
		this.mjdoctorname = mjdoctorname;
	}

	public Date getNoticdate() {
		return this.noticdate;
	}

	public void setNoticdate(Date noticdate) {
		this.noticdate = noticdate;
	}

	public String getNotice() {
		return this.notice;
	}

	public void setNotice(String notice) {
		this.notice = notice;
	}

	public String getPatientname() {
		return this.patientname;
	}

	public void setPatientname(String patientname) {
		this.patientname = patientname;
	}

	public HospPatientRegistration getHospPatientRegistration() {
		return this.hospPatientRegistration;
	}

	public void setHospPatientRegistration(HospPatientRegistration hospPatientRegistration) {
		this.hospPatientRegistration = hospPatientRegistration;
	}

	@Override
	public String toString() {
		return "HospWorkInNotice [livenoticid=" + livenoticid + ", liveoffice=" + liveoffice + ", livestatus="
				+ livestatus + ", mjdoctorname=" + mjdoctorname + ", noticdate=" + noticdate + ", notice=" + notice
				+ ", patientname=" + patientname + ", hospPatientRegistration=" + hospPatientRegistration + "]";
	}

}